package pers.hl.module_main.search

import pers.hl.lib_global.common.Const.RequestParam.DEFAULT_PAGE_SIZE
import pers.hl.lib_global.http.LibResponse
import pers.hl.lib_global.model.PageInfo
import pers.hl.lib_global.model.bean.Book
import pers.hl.lib_global.mvvm.BaseLibModel

class SearchModel: BaseLibModel() {

    suspend fun search(content: String, pageNum: Int): LibResponse<List<Book>> {
        return libService.searchBooksNew(content, DEFAULT_PAGE_SIZE, pageNum)
    }

}
